package com.easy.mapper;
import com.easy.bean.Room;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface RoomDao {
    int add(@Param("param") Room room);
    int del(@Param("id")Integer id);
    int edit(@Param("param")Room room);
    Room one(@Param("id")Integer id);
    List<Room> all(@Param("param")Room room);


    int pageCount(@Param("param")Room room);
    List<Room> page(@Param("page") Page page, @Param("param")Room room);

}
